package sctu.edu.java.year2016.team08.lisonghong.day20160521.chapter5_2;

import java.util.Arrays;

/**
 * 创建一个一维数组并输出最大值
 * Created by 松红 on 2016/5/21.
 */
public class chapter5_2 {
    public static void main(String[] args) {
        int[] arr = new int[]{2, 1, 3, 4, 5, 6, 7, 8, 9};
        Arrays.sort(arr);
        System.out.println(arr[arr.length - 1]);

    }
}
